package task;

import java.util.ArrayList;
import java.util.Collection;
import java.util.Scanner;

/*
 * 碳酸饮料
 */
public class Drinks extends AbstractShape {

Collection<AbstractShape> b1 = new ArrayList<>();
	
	public Drinks( String name) {
		super(name);
	}
	public Drinks(){
		super("碳酸饮料");
	}
	public void add(AbstractShape abstractShape) {
		abstractShape.setId(Id()+1);
		b1.add(abstractShape);
	}

	@Override
	public int Product() {

		return 0;
	}

	@Override
	public int Id() {

		return 0;
	}

	@Override
	public String Name() {

		return null;
	}

	@Override
	public String Brand() {

		return null;
	}

	@Override
	public float Price() {

		return 0;
	}

	@Override
	public String totring() {

		return  "COFFEE:"+b1.toString();
	}

}
